/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.product;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 乐购产品sku图片Entity
 * @author 罗天文
 * @version 2018-05-15
 */
public class HkShopProductSkuImages extends DataEntity<HkShopProductSkuImages> {
	
	private static final long serialVersionUID = 1L;
	private HkShopProductSku sku;		// skuid
	private HkShopProductColor productColor;		// 商品颜色id
	private String ismain;		// 是否主图
	private String imgSrc;		// 图片路径
	
	public HkShopProductSkuImages() {
		super();
	}

	public HkShopProductSkuImages(String id){
		super(id);
	}

	public HkShopProductSku getSku() {
		return sku;
	}

	public void setSku(HkShopProductSku sku) {
		this.sku = sku;
	}

	public HkShopProductColor getProductColor() {
		return productColor;
	}

	public void setProductColor(HkShopProductColor productColor) {
		this.productColor = productColor;
	}
	
	@Length(min=0, max=1, message="是否主图长度必须介于 0 和 1 之间")
	public String getIsmain() {
		return ismain;
	}

	public void setIsmain(String ismain) {
		this.ismain = ismain;
	}
	
	@Length(min=0, max=200, message="图片路径长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
}